
<div class="wb-listing-gallery" id="wb_listing_audio_content">
    <table class="table table-striped table-striped-audio m-b-none text-sm">
        <thead>
            <th class="col-sm-2">预览</th>
            <th>原文件/文件夹名称</th>
            <th class="col-sm-1">截短时长</th>
            <th class="col-sm-1">截短大小</th>
            <th class="col-sm-1">隶属行动</th>
            <th class="col-sm-1">隶属案件</th>
            <th class="col-sm-2">创建时间</th>
            <th class="col-sm-2">操作</th>
        </thead>
        <tbody class="wb-gallery-content-audio">
            {foreach from=$content_wb_audio.child_folders key=k item=v}
            <tr id="wb_listing_item_{$v._id}">
                <td class="v-middle">
                    <i class="fa fa-folder-open cursor-pointer m-t wb-gallery-folder" data-fid="{$v.fid}" data-type="audio"></i>
                </td>
                <td class="v-middle">
                    <font class="title">{$v.title}</font>
                    <input type="text" class="form-control title-input default-hidden" 
                            value="{$v.title}" data-folder_id="{$v._id}" data-show_type="listing" />
                </td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">-</td>
                <td class="v-middle">{($v.ctime/1000)|date_format:"%Y-%m-%d %H:%M:%S"}</td>
            </tr>
            {/foreach}
            
            {foreach from=$content_wb_audio.contents key=k item=v}
            <tr id="wb_listing_item_{$v._id}">
                <td class="v-middle">
                    <a href="/workbenchadmin/audio?_id={$v.pid}&card_id={$v.card_id}" title="点击进入编辑" target="_blank">
                        <i class="fa fa-music text-xxxl"></i>
                    </a>
                </td>
                <td class="v-middle">{$v.title_from}</td>
                <td class="v-middle">{$v.extra.duration} 秒</td>
                <td class="v-middle">{$v.filesize_format}</td>
                <td class="v-middle">{$v.card_title}</td>
                <td class="v-middle">{$v.archive_title}</td>
                <td class="v-middle">{$v.ctime}</td>
                <td class="v-middle">
                    <a href="/workbenchadmin/audio?_id={$v.pid}&card_id={$v.card_id}" class="btn btn-xs btn-orange edit-single" target="_blank">
                        <i class="fa fa-pencil"></i><span> 编辑</span>
                    </a>
                    <a href="{$_DOWNLOAD_URL}?_id={$v._id}" class="btn btn-xs btn-lightblue" target="_blank">
                        <i class="fa fa-download"></i><span> 下载</span>
                    </a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
